package edu.gdkm.demo3;

public class Example3 {
    public static void main(String[] args) {
//        int score_zhangsan[] = {95,88,85};
//        int sum=0;
//        for(int i=0;i<score_zhangsan.length;i++){
//            sum+=score_zhangsan[i];
//        }
//        System.out.println(sum/score_zhangsan.length);
//        int score_lisi[] = {88,95,92};
//        int score[][] = new int[2][];
//        score[0]=score_zhangsan;
//        score[1]=score_lisi;
        int score[][]={{95,89,88,85},{88,95,92,87,88}};
        for(int i=0;i<score.length;i++){
            int sum=0;
            for(int j=0;j<score[i].length;j++){
                sum+=score[i][j];
            }
            System.out.println(sum*1.0/score[i].length);
        }
    }
}
